<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商户详细信息—<s:property value="#application.website.websiteName"/></title>
<link href="css/index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/tools/public.js"></script>
<script type="text/javascript">
var map=null;
function initialize(){
    var mapOptions = {
      zoom: 4,
      center: new google.maps.LatLng(<s:property value="list[0][0].lat"/>,<s:property value="list[0][0].lng"/>),
       mapTypeId: google.maps.MapTypeId.ROADMAP,
       mapTypeControl: false, 
	   scaleControl:true,
	   streetViewControl:false,
	   zoom:15
    };
    detialmap = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
	marker = new google.maps.Marker({       
			position: new google.maps.LatLng(<s:property value="list[0][0].lat"/>,<s:property value="list[0][0].lng"/>),        
			map: detialmap});
}
</script>
</head>
<body onload="initialize()">
<div id="background">
<img src="<s:property value="#application.website.bgimg"/>">
</div>
<div id="wrap">
	<jsp:include page="../header.jsp"></jsp:include>
	
<div id="main">
		<div class="neir">
			<div class="f_l">
            	<img src="<s:property value="list[0][0].image"/>" style="width:341px;height:200px;"/>
                <div class="map">
                	<h2>位置查看：</h2>
                	<div id="map_canvas" style="width:341px;height:200px;"></div>
                </div>
            </div>
            <div class="f_r">
            	<h1><s:property value="list[0][0].name"/></h1>
                <p><s:property value="list[0][0].content" escape="false" /></p>
            </div>
            <div class="clear">
        </div><!--end.neir-->
</div><!--end#ind_main--> 


   	<div id="bottom">
		<h1>--------------  商场/酒店/饭店 信息提供的平台  -------------</h1>
    </div><!--end#bottom-->
</div><!--end#wrap-->
</body>
</html>
